//package com.example.demo.store.controller;
//
//import lombok.extern.slf4j.Slf4j;
//import org.springframework.web.bind.annotation.ExceptionHandler;
//import org.springframework.web.bind.annotation.RestControllerAdvice;
//
//@Slf4j
//@RestControllerAdvice
//public class AdviceController {
//
//    @ExceptionHandler(value=Exception.class)
//    public void exception(Exception ex){
//        log.error("异常:{}",ex.getMessage());
//    }
//}
